package com.tubi.arrayFunction;

import java.util.Scanner;

public class Demo4ArrayFun {
    /*
    * 查找 输入值在数组的位置
    * */

    public static void main(String[] args) {
        int[] arr = {34,43,55,5};
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();

        int index = -1;

        for (int i = 0; i < arr.length; i++) {
            if(num == arr[i]) {
                index = i;
                break;
            }
        }
        System.out.println(index);
    }
}
